Method of writing to a spin torque magnetic random access memory

ABSTRACT

A method includes destructively reading bits of a spin torque magnetic random access memory and immediately writing back the original or inverted values. A detection of the majority state of the write back bits and a conditional inversion of write back bits are employed to reduce the number of write back pulses. A subsequent write command received within a specified time or before an original write operation is commenced will cause a portion of the write back pulses or the original write operation pulses to abort. Write pulses during subsequent write operations will follow the conditional inversion determined for the write back bits during destructive read.

This application claims the benefit of U.S. Provisional Application No.61/438,009 filed Jan. 31, 2011 and U.S. patent application Ser. No.13/362,599 filed Jan. 31, 2012.

TECHNICAL FIELD

The exemplary embodiments described herein generally relate tointegrated magnetic devices and more particularly relate to programmingmethods for magnetoresistive memories.

BACKGROUND

Magnetoelectronic devices, spin electronic devices, and spintronicdevices are synonymous terms for devices that make use of effectspredominantly caused by electron spin. Magnetoelectronics are used innumerous information devices to provide non-volatile, reliable,radiation resistant, and high-density data storage and retrieval. Thenumerous magnetoelectronics information devices include, but are notlimited to, Magnetoresistive Random Access Memory (MRAM), magneticsensors, and read/write heads for disk drives.

Typically an MRAM includes an array of magnetoresistive memory elements.Each magnetoresistive memory element typically has a structure thatincludes multiple magnetic layers separated by various non-magneticlayers, such as a magnetic tunnel junction (MTJ), and exhibits anelectrical resistance that depends on the magnetic state of the device.Information is stored as directions of magnetization vectors in themagnetic layers. Magnetization vectors in one magnetic layer aremagnetically fixed or pinned, while the magnetization direction ofanother magnetic layer may be free to switch between the same andopposite directions that are called “parallel” and “antiparallel”states, respectively. Corresponding to the parallel and antiparallelmagnetic states, the magnetic memory element has low (logic “0” state)and high (logic “1” state) electrical resistance states, respectively.Accordingly, a detection of the resistance allows a magnetoresistivememory element, such as an MTJ device, to provide information stored inthe magnetic memory element. There are two completely different methodsused to program the free layer: field switching and spin-torqueswitching. In field-switched MRAM, current carrying lines adjacent tothe MTJ bit are used to generate magnetic fields that act on the freelayer. In spin-torque MRAM, switching is accomplished with a currentpulse through the MTJ itself. The angular momentum carried by thespin-polarized tunneling current causes reversal of the free layer, withthe final state (parallel or antiparallel) determined by the polarity ofthe current pulse. A reset current pulse will cause the final state tobe parallel or logic “0”. A set current pulse, in the opposite polarityof reset current pulse, will cause the final state to be antiparallel orlogic “1”. Spin-torque transfer is known to occur in MTJ devices andgiant magnetoresistance devices that are patterned or otherwise arrangedso that the current flows substantially perpendicular to the interfaces,and in simple wire-like structures when the current flows substantiallyperpendicular to a domain wall. Any such structure that exhibitsmagnetoresistance has the potential to be a spin-torque magnetoresistivememory element.

Spin-torque MRAM (ST-MRAM), also known as spin-torque-transfer RAM(STT-RAM), is an emerging memory technology with the potential fornon-volatility with unlimited endurance and fast write speeds at muchhigher density than field-switched MRAM. Since ST-MRAM switching currentrequirements reduce with decreasing MTJ dimensions, ST-MRAM has thepotential to scale nicely at even the most advanced technology nodes.However, increasing variability in MTJ resistance and sustainingrelatively high switching currents through bitcell select devices inboth current directions can limit the scalability of ST-MRAM. The writecurrent is typically higher in one direction compared to the other, sothe select device must be capable of passing the larger of the twocurrents. In addition, ST-MRAM switching current requirements increaseas the write current pulse duration is reduced. Because of this, thesmallest ST-MRAM bitcell approach may require relatively long switchingtimes.

Data stored in memory is defined in banks. A rank is a plurality ofbanks in a first direction (column) and a channel is a plurality ofbanks in a second direction (row). A process for accessing the memorycomprises several clock cycles required for row and columnidentification and a read or write operation. The bandwidth for the datatransfer may comprise a row of many thousands of bits.

Access to a bank in a double data rate (DDR) memory generally includesan ACTIVATE operation, followed by several READ/WRITE operations and aPRECHARGE operation. The ACTIVATE operation opens a row (or page) oftypically 1,000 or more bits. The READ/WRITE operation performs thereading or writing of columns, e.g., 128 bits, in the open row. ThePRECHARGE operation closes the row.

During the ACTIVATE operation, a page of data is read from the memoryarray and stored in local data-store latches for subsequent READ andWRITE operations from and to the local data-store latches. The ACTIVATEoperation can be initiated by an ACTIVATE command or any other commandthat performs the same operation. During a PRECHARGE operation, the datafrom local data-store latches are written back to the memory array, andas a result, that page is considered closed or not accessible without anew ACTIVATE operation. The PRECHARGE operation can be initiated by aPRECHARGE or AUTO-PRECHARGE command or any other command that performsthe same operation. During the PRECHARGE operation in ST-MRAM, currentpulses to write the MTJs corresponding to the open row would be appliedto write-back the data from the local data-store latches to ST-MRAMarray.

However, the peak current during the closing of all open rows indifferent banks (PRECHARGE) can be very high, e.g., for a current pulseof 300 micro amps, a page size of 1000, the peak current during an eightbank PRECHARGE phase would be 2.4 amps. Furthermore, until the PRECHARGEoperation is complete (write-back to ST-MRAM), the memory is volatile.And ST-MRAM write pulses, for e.g. of 10 nanoseconds or more, may not besuitable for real-time write-back when the WRITE operations to the localdata-store latches have a minimum interval of 5 nanoseconds.

Accordingly, it is desirable to provide a method of reducing peak writecurrent, managing the longer write pulse durations during the shortinterval of WRITE operations to the local data-store latches, andenabling the non-volatility of the open row. Furthermore, otherdesirable features and characteristics of the exemplary embodiments willbecome apparent from the subsequent detailed description and theappended claims, taken in conjunction with the accompanying drawings andthe foregoing technical field and background.

BRIEF SUMMARY

A method and apparatus are provided for programming and reading aspin-torque magnetoresistive random access memory.

A first exemplary embodiment includes destructively reading the bits inthe spin-torque magnetoresistive memory array, each bit having a firstor a second value; providing first write-back current pulses whilesimultaneously aborting the write back current pulses for a portion ofthe plurality of bits in response to a write operation to the sameportion; and providing second write current pulses according to the newvalue only for the same portion of the plurality of the bits.

A second exemplary embodiment includes destructively reading the bits inthe spin-torque magnetoresistive memory array; destructively reading aportion immediately followed by a write-back current pulses; conductingwrite operation with new data for a portion of the plurality of bitswriting new data states to a local data-store latches; and initiatingwrite current pulses at a later time according to the data states fromthe local data-store latches if the data states from the localdata-store latches are different in states from read memory statesduring destructive read.

A third exemplary embodiment includes sampling the bits in thespin-torque magnetoresistive memory array; setting the bits to a firststate in the spin-torque memory array; resampling the bits to evaluatethe states of the bits; storing a value of each of the bits in one of aplurality of latches, the value being either a first state or a secondstate; reading the state of the bits in the latches; and initializing afirst resetting of the bits in the spin-torque magnetoresistive memoryarray to the second state if a stored value for a bit was the secondstate in the plurality of latches.

A fourth exemplary embodiment includes sampling the bits in thespin-torque magnetoresistive memory array; setting the bits to a firststate in the spin-torque memory array; resampling the bits to evaluatethe states of the bits as either a first or second state; detectingwhich of the first or second states of the bits is a majority; invertingthe states if the second state is detected as the majority state;resetting the bits in the spin-torque magnetoresistive memory array tothe second state if inverted state of a bit was the second state;aborting the resetting step for a portion of the plurality of the bitsif a subsequent write operation is received; inverting the first andsecond states for the subsequent write operation if the second state wasdetected as the majority state in the majority detection step above; andresetting the bits to either first or second states for the portion ofthe plurality of the bits in the spin-torque magnetoresistive memoryarray according to the inverted data states.

A fifth exemplary embodiment includes sampling the bits in thespin-torque magnetoresistive memory array; setting the bits to a firststate in the spin-torque magnetoresistive memory array; resampling thebits to evaluate the states of the bits to either a first or secondstate; detecting which of the first or second states of the bits is amajority; inverting the states if the second state is detected as themajority state; resetting the bits in the spin-torque magnetoresistivememory array to the second state if inverted state of a bit was thesecond state; initiating a programmable delay if a subsequent writeoperation is received for a portion of the plurality of the bits;storing multiple write operations for different portions of theplurality of the bits; aborting the resetting step for the differentportions of the plurality of the bits if the resetting step for the samedifferent portions of the plurality of the bits is ongoing; andinitiating new resetting operations for the same different portions ofthe plurality of the bits to either first or second states,

A sixth exemplary embodiment includes sampling the bits in thespin-torque magnetoresistive memory array; setting the bits to a firststate in the spin-torque magnetoresistive memory array; resampling thebits to resolve the states of the bits to either a first or secondstate; detecting which of the first or second states of the bits is amajority; inverting the states if the second state is detected as themajority state; resetting the bits in the spin-torque magnetoresistivememory array to the second state if inverted state of a bit was thesecond state; initiating a programmable delay if a subsequent writeoperation is received for a portion of the plurality of the bits;storing multiple write operations to the same portion of the pluralityof the bits; aborting the resetting step for the same portion of theplurality of the bits if the resetting step for the same portion of theplurality of the bits is ongoing; and initiating new resettingoperations for the same portion of the plurality of the bits to eitherfirst or second states according to the subsequent write operations,

A seventh exemplary embodiment includes a system for reading a first orsecond state for each of a plurality of bits of a spin-torquemagnetoresistive memory array, comprising a plurality of latches; and aprocessor configured to sample the bits in the spin-torquemagnetoresistive memory array; set the bits in the spin-torquemagnetoresistive memory array to a first state; resample the bits toevaluate the bit states to either a first or second state; store a valueof each of the bits in one of the latches, the value being either afirst state or a second state; read the state of the bits in thelatches; and reset the bits in the spin-torque magnetoresistive memoryarray to the second state if a stored value for a bit was the secondstate in the plurality of latches.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will hereinafter be described in conjunction withthe following drawing figures, wherein like numerals denote likeelements, and

FIG. 1 is a block diagram of a memory interconnection system comprisingof a memory controller between a processor and non-volatile memory thatmay be used to apply the methods in accordance with the exemplaryembodiments;

FIG. 2 is a flow chart of the steps for destructive read with immediatewrite-back in ST-MRAM occurring during an ACTIVATE operation inaccordance with a first exemplary embodiment;

FIG. 3 is a flow chart of the steps for destructive read with immediatewrite-back in ST-MRAM occurring during ACTIVATE operation in accordancewith a second exemplary embodiment;

FIG. 4 is an organization of words in a row/page of a bank ofnon-volatile memory;

FIG. 5 is a flow chart of the steps occurring during a WRITE operationin accordance with a third exemplary embodiment; and

FIG. 6 is a first exemplary embodiment of hardware block diagramimplementing the functionalities during ACTIVATE and WRITE operations inaccordance with a fourth exemplary embodiment.

DETAILED DESCRIPTION

The following detailed description is merely illustrative in nature andis not intended to limit the embodiments of the subject matter or theapplication and uses of such embodiments. Any implementation describedherein as exemplary is not necessarily to be construed as preferred oradvantageous over other implementations. Furthermore, there is nointention to be bound by any expressed or implied theory presented inthe preceding technical field, background, brief summary, or thefollowing detailed description.

A method of programming non-volatile memory includes a destructive readof ST-MRAM cells in an addressed page with reset (MTJ written to logic“0”) write current pulses during an ACTIVATE operation, immediatelyfollowed by a write-back comprising of only a conditional set (MTJwritten to logic “1”) write current pulses if a read state is logic “1”.A subsequent WRITE operation with a new value for a portion of the openpage can abort ongoing write current pulses only to the addressedportion without affecting the rest of the write current pulses if inprogress. New set or reset write current pulses are initiated accordingto new value only for the addressed portion of data either immediatelyor within a specified time of a look-ahead period to poll for anypending WRITE operation prior to starting new set or reset write currentpulses in response to the original WRITE operation. The write-backportion of the ACTIVATE operation further employs majority bit detectionand inversion of write data to minimize the number of write-back setwrite current pulses. The set or reset write current pulses due to anysubsequent WRITE operation follow the majority bit detection output andinversion polarity (inversion or no inversion of the new data) of thewrite-back data from the ACTIVATE operation. One page or row worth ofdata read during an ACTIVATE operation in ST-MRAM array is organizedinto multiple error correcting code (ECC) words and a plurality ofinversion status bits. Each ECC word or a group of ECC words has its ownwrite-clock phase generator block to support the aforementionedwrite-abort feature.

For simplicity and clarity of illustration, the drawing figures depictthe general structure and/or manner of construction of the variousembodiments. Descriptions and details of well-known features andtechniques may be omitted to avoid unnecessarily obscuring otherfeatures. Elements in the drawings figures are not necessarily drawn toscale: the dimensions of some features may be exaggerated relative toother elements to assist improve understanding of the exampleembodiments.

Terms of enumeration such as “first,” “second,” “third,” and the likemay be used for distinguishing between similar elements and notnecessarily for describing a particular spatial or chronological order.These terms, so used, are interchangeable under appropriatecircumstances. The embodiments of the invention described herein are,for example, capable of use in sequences other than those illustrated orotherwise described herein.

The terms “comprise,” “include,” “have” and any variations thereof areused synonymously to denote non-exclusive inclusion. The term“exemplary” is used in the sense of “example,” rather than “ideal.”

In the interest of conciseness, conventional techniques, structures, andprinciples known by those skilled in the art may not be describedherein, including, for example, standard magnetic random access memory(MRAM) process techniques, fundamental principles of magnetism, andbasic operational principles of memory devices.

During the course of this description, like numbers may be used toidentify like elements according to the different figures thatillustrate the various exemplary embodiments.

Techniques and technologies may be described herein in terms offunctional and/or logical block components, and with reference tosymbolic representations of operations, processing tasks, and functionsthat may be performed by various computing components or devices. Suchoperations, tasks, and functions are sometimes referred to as beingcomputer-executed, computerized, software-implemented, orcomputer-implemented. In practice, one or more processor devices cancarry out the described operations, tasks, and functions by manipulatingelectrical signals representing data bits at memory locations in thesystem memory, as well as other processing of signals. The memorylocations where data bits are maintained are physical locations thathave particular electrical, magnetic, optical, resistive, or organicproperties corresponding to the data bits. It should be appreciated thatthe various clock, signal, logic, and functional components shown in thefigures may be realized by any number of hardware, software, and/orfirmware components configured to perform the specified functions. Forexample, an embodiment of a system or a component may employ variousintegrated circuit components, e.g., memory elements, digital signalprocessing elements, logic elements, look-up tables, or the like, whichmay carry out a variety of functions under the control of one or moremicroprocessors or other control devices.

For the sake of brevity, conventional techniques related to programmingmemory, and other functional aspects of certain systems and subsystems(and the individual operating components thereof) may not be describedin detail herein. Furthermore, the connecting lines shown in the variousfigures contained herein are intended to represent exemplary functionalrelationships and/or physical couplings between the various elements. Itshould be noted that many alternative or additional functionalrelationships or physical connections may be present in an embodiment ofthe subject matter.

A magnetoresistive random access memory (MRAM) array includes writecurrent drivers and sense-amplifiers positioned near a plurality ofmagnetoresistive bits. A write, or program, operation begins when acurrent of either one of the two different and opposite polarities, setor reset, is applied through the magnetic storage element, e.g., MTJ.Such write mechanism is employed in spin torque transfer (STT) or spintorque (ST) MRAM. The spin-torque effect is known to those skilled inthe art. Briefly, a current becomes spin-polarized after the electronspass through the first magnetic layer in amagnetic/non-magnetic/magnetic trilayer structure, where the firstmagnetic layer is substantially more stable than the second magneticlayer. The higher stability of the first layer compared to the secondlayer may be determined by one or more of several factors including: alarger magnetic moment due to thickness or magnetization, coupling to anadjacent antiferromagnetic layer, coupling to another ferromagneticlayer as in a SAF structure, or a high magnetic anisotropy. Thespin-polarized electrons cross the nonmagnetic spacer and then, throughconservation of spin angular momentum, exert a spin torque on the secondmagnetic layer that causes precession of its magnetic moment andswitching to a different stable magnetic state if the current is in theproper direction. When net current of spin-polarized electrons movingfrom the first layer to the second layer exceeds a first criticalcurrent value, the second layer will switch its magnetic orientation tobe parallel to that of the first layer. If a bias of the oppositepolarity is applied, the net flow of electrons from the second layer tothe first layer will switch the magnetic orientation of the second layerto be antiparallel to that of the first layer, provided the magnitude ofthe current is above a second critical current value. Switching in thisreverse direction involves a fraction of the electrons reflecting fromthe interface between the spacer and the first magnetic layer andtraveling back across the nonmagnetic spacer to interacting with thesecond magnetic layer.

Magnetoresistance is the property of a material to change the value ofits electrical resistance depending on its magnetic state. Typically,for a structure with two ferromagnetic layers separated by a conductiveor tunneling spacer, the resistance is highest when the magnetization ofthe second magnetic layer is antiparallel to that of the first magneticlayer, and lowest when they are parallel.

FIG. 1 is a block diagram of an exemplary memory system 100 including amemory controller 102 that performs data transfer between a processor104 and the memory 106. The memory controller 102 and the processor 104may reside on the same chip 108, or they may reside on separate chips(not shown). The memory 106 comprises a non-volatile memory 118 usingmagnetic tunnel junctions, preferably ST-MRAM, for data storage. Thenon-volatile memory 118 comprises a plurality of non-volatile memorybanks 128.

A chip select (CS) line 132 provides a CS signal from the memorycontroller 102 to the non-volatile memory 118. An address bus 137 and adata line 140 couples the memory controller 102 to the non-volatilememory 118. Other control and clock signals may exist between the memorycontroller 102 and non-volatile memory 118 that are not shown in FIG. 1.Furthermore, an address bus 137 and a data line 140 may include multiplelines or bits.

In operation, an ACTIVATE operation for an address can be initiated innon-volatile memory 118. Subsequently, the memory controller 102initiates READ or WRITE operations in the non-volatile memory 118. Thedata from non-volatile memory 118 is read after the non-volatile memoryACTIVATE operation is complete.

The ACTIVATE operation in DDR ST-MRAM performs a destructive read whereread data in the memory array is reset to logic state “0” during theread process. The read data from the array is stored in local data-storelatches at the completion of the ACTIVATE operation. READ/WRITEoperations subsequent to the ACTIVATE operation are performed to thelocal data-store latches instead of the ST-MRAM array. Small timeinterval, for e.g. 5 nanoseconds, between READ/WRITE operations isfeasible due to fast latch operations.

FIG. 2 is a flow chart that illustrates an exemplary embodiment of adestructive read operation with an immediate write-back process 200 forrestoring read bits of an ST-MRAM memory back to their state prior tothe destructive read. For illustrative purposes, the followingdescription of process 200 may refer to elements mentioned above inconnection with FIG. 1. It should be appreciated that process 200 mayinclude any number of additional or alternative tasks, the tasks shownin FIG. 2 need not be performed in the illustrated order, and process200 may be incorporated into a more comprehensive procedure or processhaving additional functionality not described in detail herein.Moreover, one or more of the tasks shown in FIG. 2 could be omitted froman embodiment of the process 200 as long as the intended overallfunctionality remains intact.

This first exemplary embodiment of destructive read with immediatewrite-back in the ST-MRAM array includes first sampling 202 a magneticbit of the non-volatile memory 118 to provide and store a sampledvoltage. An exemplary sample operation is applying a desired voltage,Vbit, across a bit; converting the resulting current through the bitinto a voltage, Vsample; and storing Vsample into a capacitor. A resetwrite current pulse is applied 204 to set the bit to 0 (equivalent to alogic state “0”). The bit state is evaluated 206 by resampling a voltageafter step 204 is complete and comparing the resampled voltage with thesampled voltage from step 202. An exemplary resample and evaluateoperation is applying the same desired voltage, Vbit, from step 202across the bit; comparing the resulting current through the bit addedwith an offset current with the current due to Vsample from step 202 togenerate a voltage, Veval; and comparing Veval with Vsample from step202 to evaluate the bit state. The bit state is thus determined to beeither 0 or 1 depending on the sampled voltage levels from 202 and 206.For example, if sampled voltage from 206 is higher than that from step202, the bit state is 0. The sampled voltage levels can be compared inmultiple ways to resolve the bit state. If 208 the bit state is 1, a setwrite current pulse is applied 210 to set the bit to 1, thus performingan immediate write-back to restore the bit state. If 208 the bit stateis not 1, no write pulse is needed 212.

FIG. 3 is a flow chart that illustrates the second exemplary embodimentof a destructive read operation with an immediate write-back process 300of one page (or equivalently one row) of data comprising of multiplebits. The process 300 is initiated at the beginning of an ACTIVATEoperation 302. A sampling 304 multiple magnetic bits of the non-volatilememory 118 provides and stores sampled voltages associated with eachbit. Reset write current pulses are applied 306 to reset all the bits inthe selected page to 0. The bit states are evaluated 308 by re-samplingvoltages after step 306 is completed and the resampled voltages arecompared with the sampled voltages from step 304 for each bit. The bitstates are thus evaluated to be either 0 or 1 for each bit. A majoritystate of the bits is determined in 310. If 312 the majority state is 1,i.e., the number bits evaluated to be 1 is higher than the number ofbits evaluated to be 0, an inversion status bit is set 314 to 1 for theselected page and all the bit states are inverted 316 and the processproceeds to step 320. If 312 the majority state is not 1, an inversionstatus bit is set to 0 for the selected page 318 and the processproceeds to 320. For each bit in the page, if 320 the bit state is 1, aset write current pulse is applied 322 to set the bit to 1 thusperforming an immediate write-back to restore the bit state inaccordance with the inversion status bit set in either 314 or 318. Theprocess 300 is complete 324 after 322. For each bit in the page, if 320the bit state is 0, no set write current pulse is needed and the process300 is complete 324.

The second exemplary embodiment in FIG. 3 illustrates using majoritydetection and page inversion scheme to minimize the number of set writecurrent pulses during the immediate write-back phase, thereby reducingpower consumption. An inversion status bit for a page tracks if the pagebit states are inverted or not. While it is not shown in FIG. 3, aninversion status with multiple bits may be implemented, for example,three bits where the majority state of the three bits determines theinversion status. The second exemplary embodiment in FIG. 3 and thefirst exemplary embodiment in FIG. 2 illustrate destructive read wherethe bit is reset to 0 during the destruction phase. A destructive readmay also be implemented where the bit is set to 1 during the destructionphase. In such an alternate embodiment, the second exemplary embodimentin FIG. 3 would be modified to set all the bits to 1 in step 306, andstep 312 would check for majority state of 0 instead of 1. Step 320would check for a bit state of 0, and if 0, would apply 322 a resetwrite current pulse.

Due to timing constraints of the ACTIVATE operation, write-back pulsesmay overlap with subsequent operations, primarily READ and WRITEoperations. When a WRITE operation, subsequent to the ACTIVATEoperation, provides new data for a portion of bits, addressed by columnor other address in the open page or row, write-back set write currentpulses are aborted only for addressed portion of the bits while thewrite-back set write current pulses for rest of the bits in the page areunaffected. New set write current pulses (to write 1) or reset writecurrent pulses (to write 0) are initiated in accordance with new data inthe addressed portion of the page. New write current pulses can furtherbe initiated conditionally by comparing the new data with previous datafrom write-back set write current pulses and only when a difference isdetected. New write current pulses can further be initiated after aprogrammable delay to check for any pending WRITE operations to the sameportion of the page.

The aforementioned new write current pulses initiated by a WRITEoperation subsequent to an ACTIVATE operation can be aborted by afollowing WRITE operation to the same portion of the bits with differentdata. This scenario occurs due to back-to-back WRITE operations with asmall timing interval, for example five nanoseconds, to the same columnaddress addressing the same portion of the page to write different databits. Set or reset write current pulses may be longer, for example tennanoseconds, than the back-to-back WRITE operation interval which willcause a write-abort and initiation of new set or reset write currentpulses for new data for the same portion of bits in a page. Theinitiation of new set or reset write current pulses for new data for thesame portion of bits in a page can further be initiated conditionally bycomparing the new data with previous data and only when a difference isdetected. New set or reset write current pulses can further be initiatedafter a programmable look-ahead delay to check for any more pendingWRITE operations to the same portion of the page. In case of multipleWRITE operations, within the programmable look-ahead delay, to the sameportion of the bits in a page, only the last one is executed.

A WRITE operation subsequent to an ACTIVATE operation or any otheroperations, e.g., WRITE, to different portions of the bits in a pagewill not cause a write-abort since write current pulses (either set orreset) can be executed independently at different times or in parallelfor different portions of the bits in a page. Referring to FIG. 4, aknown method of organizing a page of bits into multiple error correctingcode (ECC) words includes a plurality of ECC words 402 from 1 to n and aword of inversion status bits 404. Each ECC word 402 comprises aplurality of ECC bits 406 and a plurality of data bits 408. Inaccordance with the present exemplary embodiment, set or reset writecurrent pulses for one ECC word or a group of ECC words can be executed,e.g., initiate, complete, and abort functions, independently at anytime. A write clock phase generator coupled to one ECC word or a groupof ECC words is used for independent execution of write current pulses.Therefore, a page of bits will be coupled to separate clock phasegenerators. When a WRITE operation subsequent to an ACTIVATE operationor any other operation provides data for a portion of the bits in page,the portion of the bits will correspond to either one ECC word ormultiple ECC words.

In accordance with this exemplary embodiment, to save power during theimmediate write-back set write current pulses, a majority detection andpage inversion scheme is used to minimize the number of set writecurrent pulses. When a page of bits are organized into multiple ECCwords as illustrated in FIG. 4, a majority state (1 or 0) of either databits and ECC bits in all of the ECC words, or all data bits in all ofthe ECC words is determined. If the majority state is 1, the read bitsare inverted prior to the immediate write-back to the ST-MRAM array, andthe inversion status bit(s) for the page in the ST-MRAM array is set to1 during the immediate write-back phase. If the majority state is 0, theread bits are written-back to the ST-MRAM array, and the inversionstatus bit(s) for the page in the ST-MRAM array is reset to 0. When aWRITE operation subsequent to an ACTIVATE operation or any otheroperation provides data for a portion of the bits in page, new dataprovided for addressed portion of the page are conditionally invertedaccording to the inversion status bit(s) of the page previouslycalculated by the majority detection and page inversion scheme duringthe ACTIVATE operation. A new majority state is not determined duringWRITE operations.

FIG. 5 is a flow chart of the steps occurring during a WRITE operationsubsequent to an ACTIVATE operation or any other operation, e.g., a READor WRITE operation. Specifically, referring to FIG. 5, the method 500 isinitiated for a WRITE operation 502 to ST-MRAM. New data for theaddressed portion of a page, e.g., column addressing, is received 504.If 506 the new data is not different from ST-MRAM array data for theaddressed portion of the page, no write current pulses are needed in thearray and hence the process is complete 510. If 506 the new data isdifferent from ST-MRAM array data for the addressed portion of the page,new ECC bits are determined for the addressed ECC words in the page 512.If 514 the inversion status bit for the page is 1, the bit states in theaddressed ECC words are inverted 516. If 514 the inversion status bitfor the page is not 1, or if the bit states in the addressed ECC wordshave been inverted 516, addressed ECC words are ready for write toST-MRAM array 518. Simultaneously with steps 504, 506, 510, 512, 514,516, if 508 there is any WRITE operation to the same addressed portionof the page during a programmable look-ahead delay period, step 504 isinitiated. If 508 there is no WRITE operation to the same addressedportion of the page during a programmable look-ahead delay period, step518 is completed.

If 520 write pulses are active in the addressed ECC words, the writepulses in the addressed ECC words are aborted 522. If there are no writepulses active in the addressed ECC words 520, or active write pulses inthe addressed ECC words are aborted 522, set or reset write currentpulses are initiated 524 in accordance with new bit states of theaddressed ECC words. The active write pulses in step 520 of method 500in FIG. 5 can be the write-back set write current pulses of an ACTIVATEoperation (step 322 in FIG. 3) in case of a WRITE operation 502 beinginitiated immediately after an ACTIVATE operation. In case of aback-to-back WRITE operations, the active write pulses in step 520 ofmethod 500 can be the set or reset write current pulses of previousWRITE operation. Method 500 in FIG. 5 illustrates an exemplaryembodiment of the present invention where a WRITE operation with a newdata for a portion of the open page can abort ongoing write pulses onlyto the addressed portion without affecting rest of the write pulses ifin progress. New write set or reset current pulses are initiatedaccording to new bit states only for the addressed portion of the pageeither immediately or within a specified time of a look-ahead period topoll for any more WRITE operation to the same addressed portion prior tostarting new set or reset write current pulses in response to theoriginal WRITE operation.

FIG. 6 is a first exemplary embodiment of a hardware block diagram of acircuit 600 implementing the functionalities during ACTIVATE and WRITEoperations in accordance with an exemplary embodiment. The circuit 600has an ST-MRAM array 602 coupled to array read circuits 610 and arraywrite circuits 612. Array write circuits 612 further includes set writecurrent drivers 640 and reset write current drivers 642. Circuit 600also includes a parity calculator 616, a triple modular redundancyevaluator 620, an error corrector 622, a data inversion unit 624,data-store latches 626, a majority detection unit 628, inversion statusbits latches 630, a parity calculator 632, a data inversion unit 636,and write clock phase generators 638. For the sake of brevity, otherknown memory circuitry, for example, row and column address decoders,word line drivers, are not shown in FIG. 6. The hardware block diagramof FIG. 6 also does not show all input and output signals for eachcircuit block. It is understood that any number of control signals andclocks can couple the circuit blocks to implement the functionalitiesduring ACTIVATE and WRITE operations in accordance with the describedembodiment.

During an ACTIVATE operation, array read circuits 610 sense data storedin the ST-MRAM array 602 using a destructive read and provide the databits, memdata, to parity calculator 616, ECC bits, memecc, to errorcorrector 622, and inversion status bits, mem inversion status bits, totriple modular redundancy evaluator 620. Each of data, ECC, andinversion status bits comprise multiple bits. Data bits and ECC bits arefurther organized into multiple ECC words. Error corrector 622 providescorrected data bits to data inversion unit 624 and corrected ECC bits todata-store latches 626. Triple modular redundancy evaluator 620determines a single inversion status bit from a majority of multipleinversion status bits, for example, three bits. If the inversion statusbit is high, data inversion unit 624 inverts and forwards the data, truedata, to data-store latches 626. If the inversion status bit is low,data inversion unit 624 does not invert the data while forwarding it,true data, to data-store latches 626. Stored data from data-storelatches 626 goes to majority detection circuit 628, data inversion unit636, and parity calculator 632. The majority detection circuit 628determines the majority state of the data bits. If the majority state isone, inversion status bits indicating high is generated and stored in630. Data inversion unit 636 inverts the data if inversion status bitfrom 630 is high and forwards the inverted data as write data bits toarray write circuits 612. If inversion status bit from 630 is low, datainversion unit 636 does not invert the data and forward the data aswrite data bits to array write circuits 612. Array write circuits 612also receive inversion status bits from 630 and ECC bits from 632. Writeclock phase generators with write-abort and write look-ahead featuresfor different ECC words 638 receives a write-back start signalimmediately after the destructive read during the ACTIVATE operation.Write clock phase generators 638 generates control signals and clocksfor the set write current drivers 640 to perform immediate write-back ofdata bits from data inversion unit 636, inversion status bits frominversion status bits latches 630, and ECC bits from parity calculator632.

Subsequent to an ACTIVATE operation, data-store latches 626 may receivenew data for a portion of all the bits corresponding to one or more ECCwords during a WRITE operation. New data for the changed ECC words isconditionally inverted by data inversion unit 636 according to inversionstatus bit from inversion status bits latches 630. Note that themajority detection circuit 628 is not exercised on new data duringWRITE. Instead, inversion status bits latches 630 provide a previouslystored inversion status bit from ACTIVATE operation to data inversionunit 636. New parity bits are determined for the changed ECC words byparity calculator 632. Write clock phase generators 638 receive a writestart signal to initiate the write operation for the changed ECC words.Write clock phase generators 638 implements logic function that firstchecks if set or reset write current pulses in the changed ECC words areactive. Any active set or reset write current pulses are aborted onlyfor the changed ECC words while the set or reset write current pulses inthe other ECC words are not affected. Any active set or reset writecurrent pulses for the changed ECC words may be aborted as soon as datafor the changed ECC words are provided in data-store latches 626. Newset or reset write current pulses may start for the changed ECC words byset write current drivers 640 or reset write current drivers 642according to new data from data inversion unit 636 and ECC from paritycalculator 632. Hence, write clock generators 638 employs separate clockphase generators for each ECC word. In another embodiment, write clockphase generators 638 may use a number of clock phase generatorsmultiplexed to multiple ECC words instead of one clock phase generatorper ECC word.

The write clock phase generators 638 further implement the writelook-ahead feature where new write current pulses are not initiatedimmediately during the first WRITE operation. A programmable delayperiod allows for polling for any more WRITE operation for the same ordifferent ECC words. Multiple WRITE operations during the programmabledelay to the same ECC word can be accumulated to generate set and/orreset write pulses only for the last WRITE operation. Multiple WRITEoperations during the programmable delay to different ECC words can beaccumulated to generate set and/or reset pulses for all the changed ECCwords during the last WRITE operation. In another embodiment, themajority detection circuit 628 may use both data and ECC bits todetermine the majority state and generate inversion status bits forinversion status bits latches 630.

It has been shown that an immediate write-back may be performed to bitsof a ST-MRAM array after a destructive read. An abort of the write-backoperation may be made in response to receiving a new WRITE operation toone or more ECC words while write-back operation for other ECC wordcontinues. Write power consumption may be saved by a majority detectionand inversion of the write-back states to minimize the number ofwrite-back pulses. WRITE operations subsequent to the write-backoperation follows the inversion status determined during the write-backoperation. New set write current pulses or reset write current pulsesduring WRITE operations are initiated only for the changed portion ofbits in accordance with new data and inversion status determined duringthe write-back operation. New write current pulses can further beinitiated after a programmable delay to check for any pending WRITEoperations to the same or any other portion of the bits.

While at least one exemplary embodiment has been presented in theforegoing detailed description, it should be appreciated that a vastnumber of variations exist. For example, immediate write-back of onlythe data bits and not the ECC bits may be performed after a destructiveread. ECC bits may be written to the ST-MRAM array at a later time, forexample, during PRECHARGE operation. In another embodiment, immediatewrite-back after a destructive read may not be aborted with data fromWRITE commands. Data and ECC from WRITE commands may be written to theST-MRAM array at a later time, for example, during PRECHARGE operation,only if data and ECC bit states changed from immediate write-back statesImmediate write-back pulses and write pulses may be staggered in time tominimize peak current. It should also be appreciated that the exemplaryembodiment or exemplary embodiments are only examples, and are notintended to limit the scope, applicability, or configuration of theinvention in any way. Rather, the foregoing detailed description willprovide those skilled in the art with a convenient road map forimplementing an exemplary embodiment of the invention, it beingunderstood that various changes may be made in the function andarrangement of elements described in an exemplary embodiment withoutdeparting from the scope of the invention as set forth in the appendedclaims.

1. A method of operation of a spin-torque magnetoresistive memory, themethod comprising: sampling magnetic bits to provide a sampled voltagefor each of the magnetic bits, wherein the magnetic bits correspond to apage within the spin-torque magnetoresistive memory; applying a firstwrite current pulse to each of the magnetic bits to set all of themagnetic bits in the page to a first logic state; resampling each of themagnetic bits in the page to provide a resampled voltage for eachmagnetic bit; for each magnetic bit in the page, comparing the resampledvoltage with the sampled voltage to determine a bit state for themagnetic bit, wherein the bit state for each magnetic bit is either thefirst logic state or a second logic state; inverting all the bit statesfor the magnetic bits in the page when a majority of the magnetic bitsare in the second logic state; and initiating a write-back to each ofthe magnetic bits in the page having the second logic state, wherein thewrite-back includes applying a second write current pulse havingopposite polarity in comparison with the first write current pulse toset the magnetic bit in the spin-torque magnetoresistive memory to thesecond state.
 2. The method of claim 1, further comprising determining amajority state of the magnetic bits by comparing a number of magneticbits with the first logic state with a number of magnetic bits with thesecond logic state.
 3. The method of claim 1, further comprising storingeach sampled voltage.
 4. The method of claim 3, further comprisingstoring each sampled voltage in a capacitor.
 5. The method of claim 1,wherein sampling the magnetic bits further comprises: for each magneticbit in the page: applying a first voltage across the magnetic bit;converting current resulting from applying the first voltage to thesampled voltage; and storing the sampled voltage in a capacitor.
 6. Themethod of claim 5, wherein resampling each of the magnetic bits furthercomprises: for each magnetic bit in the page: reapplying the firstvoltage across the magnetic bit; and adding an offset current to acurrent resulting from reapplying the first voltage across the magneticbit, wherein the resampled voltage for each magnetic bit is generatedusing the offset current and the current resulting from reapplying thefirst voltage across the magnetic bit.
 7. The method of claim 1, whereinthe page corresponds to a row of magnetic bits in an array.
 8. Themethod of claim 1, wherein inverting all the bit states for the magneticbits in the page includes setting an inversion status bit for the page,wherein the inversion status bit tracks inversion status of the bitstates for the page.
 9. The method of claim 8, wherein initiating thewrite-back includes performing an immediate write-back to restore eachbit state in accordance with the inversion status bit.
 10. The method ofclaim 1 further comprising: after initiating the write-back, receiving awrite operation corresponding to a portion of the magnetic bits in thepage; and aborting write-back for the portion of the magnetic bits. 11.The method of claim 10, further comprising: after the write-back,initiating new write-back write current pulses for the portion of themagnetic bits in accordance with new data included with the writeoperation.
 12. The method of claim 11, wherein initiating the newwrite-back current pulses includes initiating the new write-back currentpulses after a programmable delay.
 13. The method of claim 10, furthercomprising: comparing new data included with the write operation withprevious data; and when a difference is detected in comparing the newdata with the previous data, initiating new write current pulses. 14.The method of claim 1, wherein the magnetic bits in the page areorganized into error correcting code (ECC) words, wherein each ECC wordincludes a plurality of ECC bits and a plurality of data bits.
 15. Themethod of claim 14, further comprising determining a majority state ofthe plurality of data bits included in the ECC words.
 16. The method ofclaim 14, further comprising determining a majority state of theplurality of ECC bits and the plurality of data bits included in the ECCwords.
 17. The method of claim 1, wherein initiating the write-backfurther comprises staggering second write current pulses in time. 18.The method of claim 1, wherein the first logic state is a logic 0 andthe second logic state is a logic
 1. 19. The method of claim 1, furthercomprising after determining the bit state for each of the magnetic bitsby comparing, storing the bit state for each of the magnetic bits in alatch.
 20. A method of operation of a spin-torque magnetoresistivememory, the method comprising: sampling magnetic bits to provide asampled voltage for each of the magnetic bits, wherein the magnetic bitscorrespond to a page within the spin-torque magnetoresistive memory;applying a first write current pulse to each of the magnetic bits to setall of the magnetic bits in the page to a first logic state; resamplingeach of the magnetic bits in the page to provide a resampled voltage foreach magnetic bit; for each magnetic bit in the page, comparing theresampled voltage with the sampled voltage to determine a bit state forthe magnetic bit; determining a majority state of the magnetic bits;when the majority state for the magnetic bits is the second logic state,inverting all the bit states for the magnetic bits in the page; settingan inversion status bit that tracks inversion status of the bit statesfor the page; initiating a write-back to each of the magnetic bits inthe page having the second logic state, wherein the write-back includesapplying a second write current pulse having opposite polarity incomparison with the first write current pulse; after initiating thewrite-back, receiving a write operation corresponding to a portion ofthe magnetic bits in the page; and aborting write-back for the portionof the magnetic bits.
 21. The method of claim 20 further comprising:comparing new data included with the write operation with previous data;and when a difference is detected in comparing the new data with theprevious data, initiating new write current pulses after the write backfor the portion of the magnetic bits in accordance with the new dataincluded with the write operation.
 22. The method of claim 21, whereinthe new write current pulses are initiated after a programmable delay.